<?php

class Admin_Form_Edituserform extends Zend_Form
{

    public function init()
    {
    	$this->setAction(_BASE_URL ."/admin/users/update")->setMethod("post");
    	$id = $this->createElement("hidden", "id");
    	$username = $this->createElement("text", "username", array('readonly' => 'readonly'));
    	
        $password = $this->createElement("password", "password");
        $realname = $this->createElement("text", "realname");
        $submit = $this->createElement("submit", "Update");
        
        $id->removeDecorator("HtmlTag")->removeDecorator("label");
        $username->removeDecorator("HtmlTag")->removeDecorator("label");
        $password->removeDecorator("HtmlTag")->removeDecorator("label");
        $realname->removeDecorator("HtmlTag")->removeDecorator("label");
        $submit->removeDecorator("DtDdWrapper");
        
        $this->addElements(array($id, $username, $password, $realname, $submit));
       
    }


}

